package com.rover022.flixelgame.element.weapon
{
	import com.greensock.TweenMax;
	import com.greensock.easing.Linear;
	import com.rover022.flixelgame.element.BaseElement;
	import com.rover022.flixelgame.element.weapon.bullet.BowBullet;
	import org.flixel.FlxG;
	import org.flixel.FlxPoint;
	import org.flixel.plugin.photonstorm.FlxWeapon;

	public class BaseFlxWeapon extends FlxWeapon
	{
		private var _parent:BaseElement;

		public function BaseFlxWeapon(name:String, parentRef:* = null, xVariable:String = "x", yVariable:String = "y")
		{
			super(name, parentRef, xVariable, yVariable);
			_parent = parentRef;
		}

		public function get parent():BaseElement
		{
			return _parent;
		}

		public function fireAtElement(target:BaseElement):Boolean
		{
			return true;
		}
	}
}
